#define _CRT_SECURE_NO_WARNINGS 1


//
//int* buildArray(int* nums, int numsSize, int* returnSize)
//{
//    int* p = (int*)malloc(numsSize * sizeof(int));
//    for (int i = 0; i < numsSize; i++)
//    {
//        p[i] = nums[(nums[i])];
//    }
//    *returnSize = numsSize;
//    return p;
//}


#include<stdio.h>
#include<string.h>

void ReverseOrder(char* str, int len)
{
	char* left = str;
	char* right = str + len - 1;
	while (left < right)
	{
		int tem = *left;
		*left  = *right;
		*right = tem;
		left++;
		right--;
	}
}

int main()
{
	char arr[1000] = { 0 };
	gets(arr);
	int len = strlen(arr);
	ReverseOrder(arr, len);
	printf("%s", arr);
	return 0;
}